.class Lcom/waiqin365/lightapp/dailyreport/bc;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/TextView$OnEditorActionListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEditorAction(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->b(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/c/o;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/c/o;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/dailyreport/c/o;-><init>()V

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->a(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;Lcom/waiqin365/lightapp/dailyreport/c/o;)Lcom/waiqin365/lightapp/dailyreport/c/o;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->b(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/c/o;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->c(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/o;->k:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->b(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/c/o;

    move-result-object v0

    const-string/jumbo v1, "1"

    iput-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/o;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->a(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/util/a;->a(Landroid/app/Activity;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/bc;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->b(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/c/o;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->a(Lcom/waiqin365/lightapp/dailyreport/c/o;)V

    const/4 v0, 0x1

    return v0
.end method
